<html>
<head>
<meta charset=utf-8>
<script>
function getName(ff)
{
var t=ff.textField.value;
alert("Привет, " + t);
}
</script>
</head>
<body>
<form>
<input type=text name="textField" size=45>
</br>
</br>
</br>
<button type="submit" onClick="getName(this.form)">button</button>
</form>
</body>
</html>
